//
//  DVProvincesModel.m
//  QuickCure
//
//  Created by 松鼠君 on 9/13/16.
//  Copyright © 2016 haoge. All rights reserved.
//

#import "DVProvincesModel.h"

@implementation DVProvincesModel
+(NSArray*)arrayForProvinces{
    
    NSArray* arr = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"province" ofType:@"plist"]];
    
    NSMutableArray* array = [NSMutableArray array];
    
    [arr enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        NSDictionary* dic = obj;
        
        DVProvincesModel* provincesModel = [[self alloc]init];
        
        [provincesModel setValuesForKeysWithDictionary:dic];
        
        [array addObject:provincesModel];
        
    }];
    
    return array.copy;
}
@end

